package com.crack.simpleapiclientsdk;

import com.crack.simpleapiclientsdk.client.ApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @version 1.0
 * @Description
 * @CreateTime 2023/3/8 22:15
 */
@Configuration
@ConfigurationProperties("simpleapi.client")
@Data
@ComponentScan
public class SimpleApiClientConfig {
    private String accessKey;

    private String secretKey;

    @Bean
    public ApiClient simpleApiClient(){

        return  new ApiClient(accessKey,secretKey);

    }

}
